//
//  UIViewController+CallBackBlock.m
//  DaBaiService
//
//  Created by Mac-Mini-KingVision on 15/12/7.
//  Copyright © 2015年 Mac-Mini-KingVision. All rights reserved.
//

#import "UIViewController+CallBackBlock.h"
#import <objc/runtime.h>
static const void *callBackKey = &callBackKey;
@implementation UIViewController (CallBackBlock)


@dynamic callBackBlock;

-(CallBackBlock)callBackBlock
{
    return objc_getAssociatedObject(self, callBackKey);
}

-(void)setCallBackBlock:(CallBackBlock)callBackBlock
{
    objc_setAssociatedObject(self, callBackKey, callBackBlock, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}



@end
